import { Module } from '@nestjs/common';
import { MyService } from './my.service';
import { MyController } from './my.controller';
import {TypeOrmModule} from "@nestjs/typeorm"
import {StaffController} from "./staff.controller"
import {My,Staff} from "./entities/my.entity"
import {Identity} from "./entities/identity.entity"
import {ConfigModule} from "../config/config.module"
import { JwtModule } from '@nestjs/jwt';
import { Works } from '../works/entities/works.entity';
import {StaffService} from "./staff.service"



@Module({
  imports:[TypeOrmModule.forFeature([My,Works,Staff,Identity]),
  ConfigModule,JwtModule.register({
    secret:"yaohf",
    signOptions:{
      expiresIn:"1h"
    }
  })],
  providers: [MyService,StaffService],
  // controllers: [MyController]
  controllers:[MyController,StaffController]
})
export class MyModule {}
